package com.ruoyi.teaching.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 学生面试题练习记录对象 ya_student_interview_record
 *
 * @author ruoyi
 * @date 2024-04-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ya_student_interview_record")
public class StudentInterviewRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 每日任务ID */
    @Excel(name = "每日任务ID")
    @TableField("daily_task_id")
    private Long dailyTaskId;

    /** 面试题编号 */
    @Excel(name = "面试题编号")
    @TableField("interview_id")
    private Long interviewId;

    /** 难点 */
    @Excel(name = "难点")
    @TableField("difficulty")
    private String difficulty;

    /** 答案 */
    @Excel(name = "答案")
    @TableField("answer")
    private String answer;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("date")
    private Date date;

    /** 是什么 */
    @Excel(name = "是什么")
    @TableField("what")
    private String what;

    /** 怎么用 */
    @Excel(name = "怎么用")
    @TableField("how")
    private String how;

    /** 有什么用 */
    @Excel(name = "有什么用")
    @TableField("why")
    private String why;

    /** 什么场景用 */
    @Excel(name = "什么场景用")
    @TableField("if_then")
    private String ifThen;

    /** 班级id */
    @Excel(name = "班级id")
    @TableField("classes_id")
    private Long classesId;

    /** 学生ID */
    @Excel(name = "学生ID")
    @TableField("student_id")
    private Long studentId;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dailyTaskId", getDailyTaskId())
            .append("interviewId", getInterviewId())
            .append("difficulty", getDifficulty())
            .append("answer", getAnswer())
            .append("date", getDate())
            .append("what", getWhat())
            .append("how", getHow())
            .append("why", getWhy())
            .append("ifThen", getIfThen())
            .append("classesId", getClassesId())
            .append("studentId", getStudentId())
            .toString();
    }
}
